package com.bird.extension.pattern.simpleFactory.factoryMethod;

import com.bird.extension.pattern.simpleFactory.entity.LenovoMouse;
import com.bird.extension.pattern.simpleFactory.entity.Mouse;

/**
 * @Author: sijunqiang
 * @Date: 2020/4/4 11:05
 * @Description: 创建联想鼠标工厂类
 */
public class LenovoMouseFactory implements MouseFactory {
    /**
     * <P>重写里面的创建鼠标的方法</P>
     * @return
     */
    @Override
    public Mouse createMouse() {
        //创建联想鼠标实例
        return new LenovoMouse();
    }
}
